onTerminated

abstract fun onTerminated()

Invoked when the associated template is permanently terminated and its resources are about to be released.

After this callback, the template instance should be considered invalid and should not be interacted with further. This is the final lifecycle event for the template, typically occurring when it's being removed from display or the application is shutting down a part of its UI. Listeners should perform any necessary cleanup related to this template.